class cvmfslocal (
  $repositories   = $cvmfslocal::params::repositories,
  $quota_limit    = $cvmfslocal::params::quota_limit,
  $cache_base     = $cvmfslocal::params::cache_base,
  $http_proxy     = $cvmfslocal::params::http_proxy,
  $enable_monitor = $cvmfslocal::params::enable_monitor,
) inherits cvmfslocal::params {

     case $::osfamily {
#     case $facts['os']['family'] {
      'RedHat': {
        yumrepo { "Cvmfs-base":
        baseurl => "http://${mirrorserver}/yum/cvmfs/${facts['os']['release']['major']}/\$basearch",
        descr   => "Cvmfs-base",
        enabled => 1,
        gpgcheck => 0,
        priority => 20,
        before   => Yumrepo['site'],
      }
    }
  default: {
    fail("Unsupported operating system: ${facts['os']['family']}/${facts['os']['name']}")
  }
}

#    case $facts['osfamily'] {
#        'RedHat': {
#           yumrepo { "Cvmfs-base":
#             baseurl => "http://$::mirror_server/yum/cvmfs/$operatingsystemmajrelease/\$basearch",
#             descr => "Cvmfs-base",
#             enabled => 1,
#             gpgcheck => 0,
#             priority => 20,
#             before   => Yumrepo['site']
#          }
#        }
#        default: {
#            fail("Unsupported operating system: ${::operatingsystem}")
#        }
#    }
   include '::cvmfslocal::client'
}
